﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/MasterPage.master" AutoEventWireup="true"
    CodeFile="ErrorList.aspx.cs" Inherits="admin_system_ErrorList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head_Title" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Head" runat="Server">
    <link href="/Plugin/flexigrid1.2/css/flexigrid.pack.css" rel="stylesheet" type="text/css" />
    <script src="/Plugin/flexigrid1.2/js/flexigrid.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Title" runat="Server">
    系统管理 - 系统错误
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Control" runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="Content" runat="Server">
    <script language="javascript" type="text/javascript">

        $(function () {
            $("#UserList").flexigrid({
                height: 'auto',
                width: 'auto',
                onRowClick: function (tr) {
                    var id = $(tr).attr("id");
                    location.href = "errordetail.aspx?id=" + id;
                }
            });
        });
    </script>
    <table id="UserList">
        <thead>
            <tr>
                <th width="300" style="text-align: center;">
                    错误提示
                </th>
                <th width="150" style="text-align: center;">
                    错误类型
                </th>
                <th width="450" style="text-align: center;">
                    错误地址
                </th>
                <th width="80" align="center">
                    创建时间
                </th>
            </tr>
        </thead>
        <tbody>
            <asp:Repeater ID="rp_list" runat="server">
                <ItemTemplate>
                    <tr id="<%#Eval("ID") %>">
                        <td>
                            <span style="cursor: pointer;" title="<%#Eval("title") %>">
                                <%#Eval("title").ToString()._HtmlToString() %></span>
                        </td>
                        <td>
                            <span style="cursor: pointer;" title="<%#Eval("errorType")%>">
                                <%#Eval("errorType")%></span>
                        </td>
                        <td>
                            <span style="cursor: pointer;" title="<%#Eval("url")%>">
                                <%#Eval("url")%></span>
                        </td>
                        <td>
                            <%#Convert.ToDateTime(Eval("CreateTime")).ToString("yyyy-MM-dd")%>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </tbody>
    </table>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="Foot" runat="Server">
<div id="div_page" runat="server"></div>
</asp:Content>
